package com.my.test.service.student.service.impl;

import com.my.test.service.student.dao.StudentDao;
import com.my.test.service.student.model.Student;
import com.my.test.service.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;


    @Override
    public List<Student> findAllStudent() {
        return studentDao.findAllStudent();
    }
}